<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://"
      + request.getServerName() + ":" + request.getServerPort()
      + path + "/";
%>

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<meta name="description" content="">
<meta name="author" content="">

<title>设计师登陆</title>

<!-- Bootstrap core CSS -->
<link href="<%=basePath %>css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="<%=basePath %>>css/signin.css" rel="stylesheet">


<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
  <div class="container">
    <div class="col-md-4"></div>
    <div class="col-md-4">
      <form class="loginForm" action="/user/loginForm" method="post">
        <input type="hidden" name="from" value="material">
        <h2 class="form-signin-heading">主材部登入</h2>
        <label for="inputEmail" class="sr-only">账号</label> <input type="text" name="username" class="form-control" placeholder="User Name" required autofocus> 
        <label for="inputPassword" class="sr-only">口令</label> <input type="password" name="pwd" class="form-control" placeholder="Password" required>
        <div class="checkbox">
          <label> <input type="checkbox" value="remember-me"> Remember Me </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登入系统</button>
      </form>
    </div>
  </div>
  <div class="col-md-4"></div>
  <!-- /container -->
</body>

</html>